package com.css.project.oa.phoneMenu.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.css.framework.aspectj.lang.annotation.Log;
import com.css.framework.aspectj.lang.enums.BusinessType;
import com.css.project.oa.phoneMenu.domain.ProPhoneMenu;
import com.css.project.oa.phoneMenu.service.IProPhoneMenuService;
import com.css.project.oa.phoneMenu.vo.PhoneMenuVo;
import com.css.framework.web.controller.BaseController;
import com.css.framework.web.domain.AjaxResult;
import com.css.common.utils.poi.ExcelUtil;

/**
 * 手机菜单管理Controller
 * 
 * @author css
 * @date 2020-06-12
 */
@RestController
@RequestMapping("/phoneMenuOut/menu")
public class ProPhoneMenuOutController extends BaseController
{
    @Autowired
    private IProPhoneMenuService proPhoneMenuService;

    
    /**
     * 
    * @Title: getChildMenuForOutNet 
    * @Description: 手机端获取信息
    * @param @param id
    * @param @return    设定文件 
    * @author ShiChao 
    * @return AjaxResult    返回类型 
    * @throws
     */
    @GetMapping("/getChildMenuForOutNet/{id}")
    public AjaxResult getChildMenuForOutNet(@PathVariable Long id,HttpServletRequest request)
    {
    	List<PhoneMenuVo> menus = proPhoneMenuService.getChildMenuForOutNet(id);
        return AjaxResult.success(menus);
    }
    
}
